package com.qf.flower_zuul.controller;

import com.qf.flower_zuul.entity.JsonResult;
import com.qf.flower_zuul.service.MiaoShaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/miaosha")
public class MiaoShaController {

    @Autowired
    private MiaoShaService miaoShaService;


    @RequestMapping("/miaosha")
    public JsonResult minaoShaBegin(@RequestParam(value = "flowerId") Long flowerId) {
        return miaoShaService.minaoShaBegin(flowerId);
    }
}
